The Transfer Mode Structure
The
gxTransferMode
structure specifies the transfer mode property of an ink object. For information about transfer modes, see
"Transfer Modes"
.
The structure is defined as follows:
struct gxTransferMode {
gxColorSpace space; /* the gxColor-space the transfer
mode is to operate in */
gxColorSet set;
gxColorProfile profile;
Fixed sourceMatrix[5][4];
Fixed deviceMatrix[5][4];
Fixed resultMatrix[5][4];
gxTransferFlag flags;
gxTransferComponent component[4]; /* how each component is
operated upon */
};
typedef struct gxTransferMode gxTransferMode;
Field descriptions
-
space
-
The color space used by this transfer mode. The color spaces defined by QuickDraw GX are listed in the color structure definition shown in the previous section, and are described in
"Color Spaces"
. A transfer mode's color space need not be the same as the color space of the ink object the transfer mode is part of.
-
set
-
For QuickTime vectors, this field must be
nil
.
-
profile
-
For QuickTime vectors, this field must be
nil
.
-
sourceMatrix
-
A 5 x 4 matrix that specifies how to transform the source color before applying the component modes to the components. See
"Transfer Mode Matrices"
for more information.
-
deviceMatrix
-
A 5 x 4 matrix that specifies how to transform the destination color before applying the component modes to the components. See
"Transfer Mode Matrices"
for more information.
-
resultMatrix
-
A 5 x 4 matrix that specifies how to transform the result color after applying the component modes to all components. See
"Transfer Mode Matrices"
for more information.
-
flags
-
The transfer mode flags; they specify how to handle color limits and whether multiple transfer components are needed. The transfer mode flags are described in
"Transfer Mode Flags"
.
-
component
-
An array of four transfer component structures, each specifying the type of transfer mode to apply to a single color component of the transfer mode's color space. For a description of the transfer component structure, see
"Transfer Component Structure"
.
© 1997 Apple Computer, Inc.Previous | Chapter Top | Chapter Contents | Next